﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

using Homework.Service;
namespace Homework.API.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class ProductController1 : ControllerBase
    {
        IUserService se;

        public ProductController1(IUserService se)
        {
            this.se = se;
        }
        [HttpGet]
        public IActionResult Show(int pageIndex = 1, int pageSize = 2)
        {
            return Ok(se.Show(pageIndex,pageSize));
        }
    }
}
